package types

type AppConfig struct {
	Server ServerConfig `json:"server"`
}
type ServerConfig struct {
	Mysql MysqlConfig `yaml:"mysql"`
	Redis RedisConfig `yaml:"redis"`
	Es    EsConfig    `yaml:"es"`
	Oss   OssConfig   `yaml:"oss"`
}
type MysqlConfig struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Database string `yaml:"database"`
}
type RedisConfig struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}
type EsConfig struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}
type OssConfig struct {
	AccessKeyID     string `yaml:"accessKeyID"`
	AccessKeySecret string `yaml:"accessKeySecret"`
}
